package com.xiao.config;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

// SpringBoot 启动初始化
@Component // 注入到容器
public class TestRunner implements CommandLineRunner {

    @Override // 启动前需要初始化的内容
    public void run(String... args) throws Exception {
        System.out.println("SpringBoot 启动初始化");

    }
}
